import { createStore, combineReducers, applyMiddleware } from 'redux'
import logger from 'redux-logger'
import thunk from 'redux-thunk'

import cart from './reducers/CartReducer'
import address from './reducers/AddressReducer'


// 合并reducer
const reducers = combineReducers({
    cart,
    address
})


const store = createStore(reducers, applyMiddleware(thunk, logger))


export default store